package com.sky.mapper;

import com.sky.entity.Orders;
import com.sky.vo.OrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author zcf
 */
@Mapper
public interface UserOrderMapper {
    void insert(Orders orders);

    @Select("select * from orders where number = #{number} and user_id = #{userId}")
    Orders getByNumberAndUserId(String number, Long userId);

    void update(Orders orders);

    List<Orders> list(Long currentId,Integer status);


    @Select("select * from orders where id = #{id}")
    Orders getByID(Long id);
}
